<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>LIF041-Infographie:  Fichier source de /home/the-king/LIFO41/lifo41-tp-infographie/Vec3f.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LIF041-Infographie</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_vec3f_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/home/the-king/LIFO41/lifo41-tp-infographie/Vec3f.h</div>  </div>
</div>
<div class="contents">
<a href="_vec3f_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="preprocessor">#ifndef _VEC3F_H</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span><span class="preprocessor">#define _VEC3F_H</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span>
<a name="l00006"></a>00006 
<a name="l00008"></a><a class="code" href="struct_vec3f.html">00008</a> <span class="keyword">struct </span><a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>
<a name="l00009"></a>00009 {
<a name="l00010"></a><a class="code" href="struct_vec3f.html#a78f2ea154cc9996ad95397a1fb0f4033">00010</a>         <span class="keywordtype">float</span> <a class="code" href="struct_vec3f.html#a4ee774446db3cafa0f9682065a64ba32">x</a>,<a class="code" href="struct_vec3f.html#a3b01268bf88a45f95a45097b0457393f">y</a>,<a class="code" href="struct_vec3f.html#a78f2ea154cc9996ad95397a1fb0f4033">z</a>;
<a name="l00011"></a>00011 };
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 
<a name="l00015"></a>00015 <span class="keywordtype">float</span> <a class="code" href="_vec3f_8cpp.html#abbcf5b5ffcc3a0891c1fc9d8a864d56d" title="degree -&gt; radian">rad</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> a);
<a name="l00016"></a>00016 
<a name="l00018"></a>00018 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a2d692cb5a0bc716f512538400c834231" title="print Vec3f">vecPrint</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; v);
<a name="l00019"></a>00019 
<a name="l00021"></a>00021 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a54ed0dadd24fcc09a03cd706e3b5140d" title="v=(x,y,z)">vecInit</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> x, <span class="keyword">const</span> <span class="keywordtype">float</span> y, <span class="keyword">const</span> <span class="keywordtype">float</span> z);
<a name="l00022"></a>00022 
<a name="l00024"></a>00024 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a54ed0dadd24fcc09a03cd706e3b5140d" title="v=(x,y,z)">vecInit</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; v, <span class="keyword">const</span> <span class="keywordtype">float</span> a, <span class="keyword">const</span> <span class="keywordtype">float</span> b);
<a name="l00025"></a>00025 
<a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a4d22258d1021383e38583a2a69ed1843" title="R=A+B.">vecAdd</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; R, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; A, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; B);
<a name="l00028"></a>00028 
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a55c5f21f175667e09f9e033187194381" title="R=A-B.">vecSub</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; R, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; A, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; B);
<a name="l00031"></a>00031 
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#abe76b44875ddd84236caacc0d016e20a" title="R = a*B.">vecMul</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; R, <span class="keyword">const</span> <span class="keywordtype">float</span> a, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; B);
<a name="l00034"></a>00034 
<a name="l00036"></a>00036 <span class="keywordtype">float</span> <a class="code" href="_vec3f_8cpp.html#a4d5aa147b9e2b0bbc4b5ca25f42c904e" title="Scalar product.">vecDot</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; A, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; B);
<a name="l00037"></a>00037 
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a66d8205538c53312775745ff729de541" title="Cross product (produit vectoriel)">vecCross</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; R, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; A, <span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; B);
<a name="l00040"></a>00040 
<a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="_vec3f_8cpp.html#a1c94f47fef6168c9a27f4a2ce3d78394" title="normalize the vector">vecNormalize</a>(<a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; v);
<a name="l00043"></a>00043 
<a name="l00045"></a>00045 <span class="keywordtype">float</span> <a class="code" href="_vec3f_8cpp.html#ac64a94c5bb8b6324dbd629cb1f13c95a" title="return the length of the vector">vecLength</a>(<span class="keyword">const</span> <a class="code" href="struct_vec3f.html" title="A vector is defined by 3 coord (X,Y,Z)">Vec3f</a>&amp; v);
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_vec3f_8h.html">Vec3f.h</a>      </li>
      <li class="footer">Généré le Tue Jan 3 2012 09:33:59 pour LIF041-Infographie par&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>
